import type { TableProps } from 'antd';
import { Table } from 'antd';
import React from 'react';

const columns: TableProps<any>['columns'] = [
  {
    title: '时间',
    dataIndex: 'time',
    key: 'time',
  },
  {
    title: '关系',
    dataIndex: 'relationshop',
    key: 'relationshop',
  },
  {
    title: '相近时间',
    dataIndex: 'closeTime',
    key: 'closeTime',
  },
  {
    title: '相近地区',
    dataIndex: 'closeArea',
    key: 'closeArea',
  },
  {
    title: '相近地址',
    dataIndex: 'closeAddress',
    key: 'closeAddress',
  },
];

const App: React.FC = ({ data }: any) => (
  <Table pagination={false} columns={columns} dataSource={data} />
);

export default App;
